package com.lw;

import redis.clients.jedis.Jedis;

/**
 * @author LW
 * @2020/8/31 10:46
 */
public class TestPing {

    public static void main(String[] args) {
        Jedis jedis = new Jedis("120.78.95.221",6379);
        //jedis 所有的命令对应Redis的指令！
//        Jedis jedis = new Jedis("localhost",6379);
        System.out.println(jedis.ping());//PONG

        jedis.close();
    }
}
